<template>
  <div class="app">
     <el-container>
      <el-aside>
        <router-view name="aside"></router-view>
      </el-aside>
      <el-container>
        <el-header>
          <router-view name="header"></router-view>
        </el-header>
        <el-main>
          <router-view ></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
export default {
  name: '',
}
</script>

<style lang="scss">
html,
body {
  padding: 0;
  margin: 0;
   height: 100%;
}
.el-header {
  background-color: #b3c0d1;
  color: #333;
  line-height: 60px;
  height: auto !important;
}
.header{
display: flex;
justify-content: space-between;
padding-left:10px ;
padding-right:30px ;
height: 100%;
align-items: center;

}
.el-aside {
  background-color: #545c64;
  height: 100%;
  line-height: 200px;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  // text-align: center;
  overflow: auto;
}

body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
  aside{
    width: auto !important;
    height: 100%;
  }
  .app{
    height: 100%;
  }
  .el-container{
    height: 100%;
  }
</style>
